package com.yylc.cscore.dao;

import com.yylc.cscore.entity.TaskRuleEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author xiangnan
 * date 2018/5/2
 */
@Mapper
public interface TaskRuleDao {

    TaskRuleEntity selectById(@Param("id") int id);

    List<TaskRuleEntity> selectList();

    List<TaskRuleEntity> selectPageList(@Param("type") int type, @Param("start") int start, @Param("size") int size);

    int selectPageListCount(@Param("type") int type);

    int insert(TaskRuleEntity entity);

    int update(TaskRuleEntity entity);

}
